thirdparty_root :=/home/zl/WorkPlace/Test/SharedLib
LASTSO:=libADD.a
CC := g++
AR=ar
INCS += -I${thirdparty_root}

LIBS += 

AFLAGS := -Wall -c -fPIC -O2 -std=c++11 $(INCS)
LDFLAGS := -lpthread 
LDFLAGS += -Wl,-rpath,${thirdparty_root}

OBJS := $(patsubst %.cpp,%.o,$(shell find . -name "*.cpp"))
$(warning $(OBJS))

all: $(OBJS)
	$(AR) cq $(LASTSO) $(OBJS)

$(OBJS): %.o:%.cpp
	$(CC) $(AFLAGS) $^ -o $@

debugOBJS:
	@echo ${OBJS}

.PHONY: clean FaceFilter setenv

clean:					
	rm -rf *.o *.so *.a
